package service;

import bean.RoomFacilitiesBean;

import java.util.List;

public interface IRoomFacilitiesService {
    /**
     * 查询该房间的设施集合
     *
     * @param id 房间编号
     * @return 设施集合
     */
   public List<RoomFacilitiesBean> getRoomFacilities(int id);

    /**
     * 添加设施损坏记录，同时将房间状态修改为”设施损坏“
     * @param roomFacilitiesBean 损坏设施对象
     * @param roomId 房间id
     */
    public void insertDamage(RoomFacilitiesBean roomFacilitiesBean, Integer roomId);

    /**
     * 处理损坏设施
     * @param facilitiesId
     * @param roomId
     */
    public void TreatmentFacilities(Integer facilitiesId,Integer roomId);
}
